package pizza2;

import java.util.Scanner;

/**
 * @Auther: xiaofei
 * @Date: 2021/6/8 - 06 - 08 - 9:52
 * @Description: pizza2
 * @version: 1.0
 */
public class PizzaStore {
    public static Pizza getPizza(int choice){
        Scanner sc = new Scanner(System.in);
        Pizza p = null;
        switch(choice){
            case 1:
            {
                System.out.println("请输入要添加的培根克数：");
                double weight = sc.nextDouble();
                System.out.println("请输入要披萨的尺寸大小：");
                int size = sc.nextInt();
                System.out.println("请输入披萨的价格：");
                double price = sc.nextDouble();
                BaconPizza bp = new BaconPizza("培根披萨",size,price,weight);
                p = bp;
            }
            break;
        }
        return p;
    }

}
